package com.comcast.core.eeg.types;

import java.io.ObjectStreamException;

public enum NotificationHeader {

    EVENT_SOURCE, EVENT_ID;

    private static final long serialVersionUID = 1L;    

    public static NotificationHeader fromValue(String value) {
        return valueOf(value);
    }

    public String getValue() {
        return this.toString();
    }    

    private EnumHolder<NotificationHeader> serializationToken;

    private NotificationHeader() {
        this.serializationToken = new EnumHolder<NotificationHeader>(this);
    }

    private Object writeReplace() throws ObjectStreamException {
        return serializationToken;
    }
}